package com.github.beihaifeiwu.myspring.core.feign;

import com.github.beihaifeiwu.myspring.http.feign.FeignClient;
import feign.Headers;
import feign.Param;
import feign.RequestLine;

/**
 * HttpBin.org service definition
 */
@FeignClient("http://httpbin.org")
@Headers("Accept: application/json")
public interface HttpGetService {

    @RequestLine("GET /get")
    HttpBinResponse get();

    // request /get?testArg=...
    @RequestLine("GET /get?testArg={testArg}")
    HttpBinResponse getWithArg(@Param("testArg") String arg);

}